From: Allen Kay Date: Mon, 20 Feb 2012 16:46:27 +0000 (+0000) Subject: libxl: Fix yajl-related build error due to missing error value X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=089179f6f330d820234780ebaeb79614f4d2d9ba;p=xen.git libxl: Fix yajl-related build error due to missing error value Some versions of yajl lack yajl_gen_no_buf. Signed-off-by: Allen Kay Tested-by: Konrad Rzeszutek Wilk Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 54186838d3..be6ad9693e 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -793,9 +793,9 @@ static const char *yajl_gen_status_to_string(yajl_gen_status s) return "generation complete"; case yajl_gen_invalid_number: return "invalid number"; +#if 0 /* This is in the docs but not implemented in the version I am running. */ case yajl_gen_no_buf: return "no buffer"; -#if 0 /* This is in the docs but not implemented in the version I am running. */ case yajl_gen_invalid_string: return "invalid string"; #endif